package com.basaji.dao;

import java.util.List;

import com.basaji.domain.pojo.Account;

public interface IAccountDao extends IBaseDao {
	
	Account getAccountByUsername(final String username) throws Exception;
	
	List<Account> getAccounts(int start,int size) throws Exception;
	
	int getAccountsCount() throws Exception;

	List<Account> getAccounts(String username,int start,int size) throws Exception;
	
	int getAccountsCount(String username) throws Exception;
	
	/**
	 * 查询用户
	 * @param keyword
	 * @param type 1 注册帐号  2 真实姓名 3 企业名称
	 * @param start
	 * @param size
	 * @return
	 */
	List<Account> search(String keyword,int type,int start,int size) throws Exception;
	
	int searchCount(String keyword,int type) throws Exception;
}
